package com.rp.configure.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rp.configure.entity.Alarm;
import com.rp.configure.entity.vo.AlarmVo;
import com.rp.configure.mapper.AlarmMapper;
import com.rp.configure.service.AlarmService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author vicente
 * @since 2021-07-18
 */
@Service
public class AlarmServiceImpl extends ServiceImpl<AlarmMapper, Alarm> implements AlarmService {
    @Autowired
    AlarmMapper alarmMapper;
    @Override
    public List<AlarmVo> getListAlarm() {
        return alarmMapper.getListAlarm();
    }

    @Override
    public IPage<Alarm> page1(Page<Alarm> objectPage, QueryWrapper<Alarm> wrapper) {
        return alarmMapper.page1(objectPage, wrapper);
    }

    @Override
    public List<Alarm> list1(QueryWrapper<Alarm> wrapper) {
        return alarmMapper.list1(wrapper);
    }


}
